package com.gete.schdule;

import com.gete.api.GateApi;
import io.gate.gateapi.ApiException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class MyScheduledTask {
    private static final String API_KEY = "b71a539ad55d7a21f2e25fe9e8803cc9";
    private static final String SECRET_KEY = "2a1f1178e442b556514e9a502004ff5cdcceb596fdb2c81eb6155d78415d354f";

    @Autowired
    GateApi gateApi;


    @Scheduled(cron = "20 0 * * * ?")
    public void TickScheduled() throws ApiException {
        gateApi.FutureTrade();
    }
}

